package com.my.mvpframe.ui.task;

import android.util.Log;

import com.my.mvpframe.R;
import com.my.mvpframe.base.app.BaseFragment;
import com.my.mvpframe.base.dagger.ActivityScoped;
import com.my.mvpframe.mvp.base.BasePresenter;

import javax.inject.Inject;

/**
 * Created by tomey on 2018/2/1.
 */

@ActivityScoped
public class TaskFragment extends BaseFragment implements TaskContract.View{

    @Inject
    TaskContract.Presenter presenter;
    @Inject
    public TaskFragment(){}


    @Override
    protected void initView() {
        presenter.takeView(this);
        presenter.showFragmentData();
    }

    @Override
    protected BasePresenter initPresenter() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_task;
    }

    @Override
    public void showErrorTip(String msg) {

    }

    @Override
    public void showToast() {
        Log.e("twb","showToast()");
    }
}
